package zhoufu.sz.sanxiao_check.models;

import android.databinding.Bindable;
import android.os.Parcel;
import android.os.Parcelable;

import zhoufu.sz.sanxiao_check.BR;

public class StreetInfoModel extends BaseModel<StreetInfoModel> implements Parcelable
{

    String Place_No;// 档案编号
    String Name;// 场所名称
    String Type;// 性质
    String Address;// 地址
    String Business;// 经营范围
    String Layer ="1层";// 楼层
    String Acreage;// 面积
    String Has_Business = "无";// 营业执照
    String Owner_Name;// 业主姓名
    String Phone;// 业主电话
    String Run_Name;// 经营者姓名
    String Run_Phone;// 经营者联系电话
    double Place_x = 0.0;// 经度
    double place_y = 0.0;// 纬度
    String AddTime;// 添加时间
    String SID;// 经营者id
    String RID;//场所id
    int    Reseau_Type;// 所属网格
    String Community;// 所属社区
    int    District_ID;// 片區
    String Storefront;// 门店头像
    String Building_No="无";// 房屋编码
    String StorePhoto;// 空铺显示的门店图片
    String IsLive;// 空铺显示是否住人
    String People_Num;// 空铺显示住多少个人
    String Grade = "A";
    String IsLicense;//是否有证
    String Emergency_Num;//应急灯
    String Gas_Num ; //燃气数量
    String Extinguisher_Num;//灭火器
    String  Alertor_Num;//报警器数量
    String Safe_Num;//安全出口批示牌
    String Escape_Num;//逃生出口
    String Exit_Num;//其它
    String Owner_Address="无";//:业主地址
    String Run_Address="无";//:经营者地址
    String Safety_Name="无";//:安全责任人
    String Safety_Phone="无";//:安全责任人电话
    /**
     * Doorplate : 0
     * Turn_Over : False
     * Reseau_Name :
     * District_Name :
     * Culture : 无
     * IsClose : 0
     * CloseTime :
     * UserID : 667
     */

    private String Doorplate="无";
    private String Turn_Over;
    private String Reseau_Name   = "";
    private String District_Name = "";
    private String Culture;
    private String IsClose;
    private String CloseTime;
    private String UserID;
    String Fire_Name = "无";//:消防责任人
    String Fire_Phone= "无";//:消防电话

    public StreetInfoModel()
    {

    }


    public String getPlace_No()
    {
        return Place_No;
    }

    public void setPlace_No(String place_No)
    {
        Place_No = place_No;
    }

    public String getName()
    {
        return Name;
    }

    public void setName(String name)
    {
        Name = name;
    }

    public String getType()
    {
        return Type;
    }

    public void setType(String type)
    {
        Type = type;
    }

    @Bindable
    public String getAddress()
    {
        return Address;
    }

    public void setAddress(String address)
    {
        Address = address;
        notifyPropertyChanged(BR.address);
    }

    public String getBusiness()
    {
        return Business;
    }

    public void setBusiness(String business)
    {
        Business = business;
    }

    public String getLayer()
    {
        return Layer;
    }

    public void setLayer(String layer)
    {
        Layer = layer;
    }

    public String getAcreage()
    {
        return Acreage;
    }

    public void setAcreage(String acreage)
    {
        Acreage = acreage;
    }

    public String getHas_Business()
    {
        return Has_Business;
    }

    public void setHas_Business(String has_Business)
    {
        Has_Business = has_Business;
    }

    public String getOwner_Name()
    {
        return Owner_Name;
    }

    public void setOwner_Name(String owner_Name)
    {
        Owner_Name = owner_Name;
    }

    public String getPhone()
    {
        return Phone;
    }

    public void setPhone(String phone)
    {
        Phone = phone;
    }

    public String getRun_Name()
    {
        return Run_Name;
    }

    public void setRun_Name(String run_Name)
    {
        Run_Name = run_Name;
    }

    public String getRun_Phone()
    {
        return Run_Phone;
    }

    public void setRun_Phone(String run_Phone)
    {
        Run_Phone = run_Phone;
    }

    public double getPlace_x()
    {
        return Place_x;
    }

    public void setPlace_x(double place_x)
    {
        Place_x = place_x;
    }

    public double getPlace_y()
    {
        return place_y;
    }

    public void setPlace_y(double place_y)
    {
        this.place_y = place_y;
    }

    public String getAddTime()
    {
        return AddTime;
    }

    public void setAddTime(String addTime)
    {
        AddTime = addTime;
    }

    public String getSID()
    {
        return SID;
    }

    public void setSID(String SID)
    {
        this.SID = SID;
    }

    public String getRID()
    {
        return RID;
    }

    public void setRID(String RID)
    {
        this.RID = RID;
    }

    public int getReseau_Type()
    {
        return Reseau_Type;
    }

    public void setReseau_Type(int reseau_Type)
    {
        Reseau_Type = reseau_Type;
    }

    public String getCommunity()
    {
        return Community;
    }

    public void setCommunity(String community)
    {
        Community = community;
    }

    public int getDistrict_ID()
    {
        return District_ID;
    }

    public void setDistrict_ID(int district_ID)
    {
        District_ID = district_ID;
    }

    public String getStorefront()
    {
        return Storefront;
    }

    public void setStorefront(String storefront)
    {
        Storefront = storefront;
    }

    public String getBuilding_No()
    {
        return Building_No;
    }

    public void setBuilding_No(String building_No)
    {
        Building_No = building_No;
    }

    public String getStorePhoto()
    {
        return StorePhoto;
    }

    public void setStorePhoto(String storePhoto)
    {
        StorePhoto = storePhoto;
    }

    public String getIsLive()
    {
        return IsLive;
    }

    public void setIsLive(String isLive)
    {
        IsLive = isLive;
    }

    public String getPeople_Num()
    {
        return People_Num;
    }

    public void setPeople_Num(String people_Num)
    {
        People_Num = people_Num;
    }

    public String getDoorplate()
    {
        return Doorplate;
    }

    public void setDoorplate(String doorplate)
    {
        Doorplate = doorplate;
    }

    public String getTurn_Over()
    {
        return Turn_Over;
    }

    public void setTurn_Over(String turn_Over)
    {
        Turn_Over = turn_Over;
    }

    public String getReseau_Name()
    {
        return Reseau_Name;
    }

    public void setReseau_Name(String reseau_Name)
    {
        Reseau_Name = reseau_Name;
    }

    public String getDistrict_Name()
    {
        return District_Name;
    }

    public void setDistrict_Name(String district_Name)
    {
        District_Name = district_Name;
    }

    public String getCulture()
    {
        return Culture;
    }

    public void setCulture(String culture)
    {
        Culture = culture;
    }

    public String getIsClose()
    {
        return IsClose;
    }

    public void setIsClose(String isClose)
    {
        IsClose = isClose;
    }

    public String getCloseTime()
    {
        return CloseTime;
    }

    public void setCloseTime(String closeTime)
    {
        CloseTime = closeTime;
    }

    public String getUserID()
    {
        return UserID;
    }

    public void setUserID(String userID)
    {
        UserID = userID;
    }

    public String getGrade()
    {
        return Grade;
    }

    public void setGrade(String grade)
    {
        Grade = grade;
    }

    public String getIsLicense()
    {
        return IsLicense;
    }

    public void setIsLicense(String isLicense)
    {
        IsLicense = isLicense;
    }

    public String getEmergency_Num() {
        return Emergency_Num;
    }

    public void setEmergency_Num(String emergency_Num) {
        Emergency_Num = emergency_Num;
    }

    public String getExtinguisher_Num() {
        return Extinguisher_Num;
    }

    public void setExtinguisher_Num(String extinguisher_Num) {
        Extinguisher_Num = extinguisher_Num;
    }

    public String getAlertor_Num() {
        return Alertor_Num;
    }

    public void setAlertor_Num(String alertor_Num) {
        Alertor_Num = alertor_Num;
    }

    public String getSafe_Num() {
        return Safe_Num;
    }

    public void setSafe_Num(String safe_Num) {
        Safe_Num = safe_Num;
    }

    public String getEscape_Num() {
        return Escape_Num;
    }

    public void setEscape_Num(String escape_Num) {
        Escape_Num = escape_Num;
    }

    public String getExit_Num() {
        return Exit_Num;
    }

    public void setExit_Num(String exit_Num) {
        Exit_Num = exit_Num;
    }

    public String getOwner_Address() {
        return Owner_Address;
    }

    public void setOwner_Address(String owner_Address) {
        Owner_Address = owner_Address;
    }

    public String getRun_Address() {
        return Run_Address;
    }

    public void setRun_Address(String run_Address) {
        Run_Address = run_Address;
    }

    public String getSafety_Name() {
        return Safety_Name;
    }

    public void setSafety_Name(String safety_Name) {
        Safety_Name = safety_Name;
    }

    public String getSafety_Phone() {
        return Safety_Phone;
    }

    public void setSafety_Phone(String safety_Phone) {
        Safety_Phone = safety_Phone;
    }

    public String getGas_Num() {
        return Gas_Num;
    }

    public void setGas_Num(String gas_Num) {
        Gas_Num = gas_Num;
    }

    public String getFire_Name() {
        return Fire_Name;
    }

    public void setFire_Name(String fire_Name) {
        Fire_Name = fire_Name;
    }

    public String getFire_Phone() {
        return Fire_Phone;
    }

    public void setFire_Phone(String fire_Phone) {
        Fire_Phone = fire_Phone;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.Place_No);
        dest.writeString(this.Name);
        dest.writeString(this.Type);
        dest.writeString(this.Address);
        dest.writeString(this.Business);
        dest.writeString(this.Layer);
        dest.writeString(this.Acreage);
        dest.writeString(this.Has_Business);
        dest.writeString(this.Owner_Name);
        dest.writeString(this.Phone);
        dest.writeString(this.Run_Name);
        dest.writeString(this.Run_Phone);
        dest.writeDouble(this.Place_x);
        dest.writeDouble(this.place_y);
        dest.writeString(this.AddTime);
        dest.writeString(this.SID);
        dest.writeString(this.RID);
        dest.writeInt(this.Reseau_Type);
        dest.writeString(this.Community);
        dest.writeInt(this.District_ID);
        dest.writeString(this.Storefront);
        dest.writeString(this.Building_No);
        dest.writeString(this.StorePhoto);
        dest.writeString(this.IsLive);
        dest.writeString(this.People_Num);
        dest.writeString(this.Grade);
        dest.writeString(this.IsLicense);
        dest.writeString(this.Emergency_Num);
        dest.writeString(this.Gas_Num);
        dest.writeString(this.Extinguisher_Num);
        dest.writeString(this.Alertor_Num);
        dest.writeString(this.Safe_Num);
        dest.writeString(this.Escape_Num);
        dest.writeString(this.Exit_Num);
        dest.writeString(this.Owner_Address);
        dest.writeString(this.Run_Address);
        dest.writeString(this.Safety_Name);
        dest.writeString(this.Safety_Phone);
        dest.writeString(this.Doorplate);
        dest.writeString(this.Turn_Over);
        dest.writeString(this.Reseau_Name);
        dest.writeString(this.District_Name);
        dest.writeString(this.Culture);
        dest.writeString(this.IsClose);
        dest.writeString(this.CloseTime);
        dest.writeString(this.UserID);
    }

    protected StreetInfoModel(Parcel in) {
        this.Place_No = in.readString();
        this.Name = in.readString();
        this.Type = in.readString();
        this.Address = in.readString();
        this.Business = in.readString();
        this.Layer = in.readString();
        this.Acreage = in.readString();
        this.Has_Business = in.readString();
        this.Owner_Name = in.readString();
        this.Phone = in.readString();
        this.Run_Name = in.readString();
        this.Run_Phone = in.readString();
        this.Place_x = in.readDouble();
        this.place_y = in.readDouble();
        this.AddTime = in.readString();
        this.SID = in.readString();
        this.RID = in.readString();
        this.Reseau_Type = in.readInt();
        this.Community = in.readString();
        this.District_ID = in.readInt();
        this.Storefront = in.readString();
        this.Building_No = in.readString();
        this.StorePhoto = in.readString();
        this.IsLive = in.readString();
        this.People_Num = in.readString();
        this.Grade = in.readString();
        this.IsLicense = in.readString();
        this.Emergency_Num = in.readString();
        this.Gas_Num = in.readString();
        this.Extinguisher_Num = in.readString();
        this.Alertor_Num = in.readString();
        this.Safe_Num = in.readString();
        this.Escape_Num = in.readString();
        this.Exit_Num = in.readString();
        this.Owner_Address = in.readString();
        this.Run_Address = in.readString();
        this.Safety_Name = in.readString();
        this.Safety_Phone = in.readString();
        this.Doorplate = in.readString();
        this.Turn_Over = in.readString();
        this.Reseau_Name = in.readString();
        this.District_Name = in.readString();
        this.Culture = in.readString();
        this.IsClose = in.readString();
        this.CloseTime = in.readString();
        this.UserID = in.readString();
    }

    public static final Creator<StreetInfoModel> CREATOR = new Creator<StreetInfoModel>() {
        @Override
        public StreetInfoModel createFromParcel(Parcel source) {
            return new StreetInfoModel(source);
        }

        @Override
        public StreetInfoModel[] newArray(int size) {
            return new StreetInfoModel[size];
        }
    };
}
